package com.token.config.config;

/**
 * @author 张子艺
 * @packge com.xbxkj.config.config
 * @data 2019-05-29 15:11
 * @project JapenWeb
 */
public class Constant {


    /**
     * 以下为代码生成器配置
     */
    public static final String MP_GENNERATOR="张子艺";
    public static final String MP_OUT_DIR="E:\\MyBatisPlus自动生成代码";
    public static final boolean MP_SWAGGER=true;
    public static final String MP_DATABASE_URL="jdbc:mysql://192.168.1.195:3306/xbx";
    public static final String MP_DATABASE_NAME="root";
    public static final String MP_DATABASE_PASS="123456";
    public static final String MP_PACKGE="com.xbx";

    //链接地址
    public static String WEBSOCKETPATHPERFIX = "/ws-push";
    public static String WEBSOCKETPATH = "/endpointWisely";
    //消息代理路径
    public static String WEBSOCKETBROADCASTPATH = "/topic";
    //前端发送给服务端请求地址
    public static final String FORETOSERVERPATH = "/welcome";
    //服务端生产地址,客户端订阅此地址以接收服务端生产的消息
    public static final String PRODUCERPATH = "/topic/getResponse";
    //点对点消息推送地址前缀
    public static final String P2PPUSHBASEPATH = "/user";
    //点对点消息推送地址后缀,最后的地址为/user/用户识别码/msg
    public static final String P2PPUSHPATH = "/msg";


    /**
     * 文件路径
     */
    public static String OSS_FILE_PATH = "imageserver/";
    public static String OSS_KEY ="http://ziyitest.oss-cn-beijing.aliyuncs.com/";
    public static String OSS_LAST ="?x-oss-process=image/resize,w_300,h_300/quality,q_100";
    /**
     * 阿里OSS信息
     */
    public static String OSS_endpoint ="http://oss-cn-beijing.aliyuncs.com";
    public static String OSS_accessKeyId ="LTAI12tJ9yxQmJ2H";
    public static String OSS_accessKeySecret ="YK5DOThA33XSVXLfWlq5eyF7PxoAPs";
    public static String OSS_bucketName_user = "ziyitest";
    public static int OSS_MaxConnections = 200;
    public static int OSS_SocketTimeout = 10000;
    public static int OSS_ConnectionTimeout = 10000;
    public static int OSS_ConnectionRequestTimeout = 1000;
    public static int OSS_IdleConnectionTime = 10000;
    public static int OSS_MaxErrorRetry = 5;

}
